﻿using System.Web.Optimization;

namespace Sharp.WebBooter
{
    public class BundleConfig
    {
        // 有关绑定的详细信息，请访问 http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/app")
                {
                    Orderer = new AppJsBundleOrderer()
                }
                 .Include("~/Scripts/app*"));

            Areas.CMS.BundleProfile.RegisterBundles(bundles);
            Areas.Platform.BundleProfile.RegisterBundles(bundles);

            //BundleTable.EnableOptimizations = true;   //EnableOptimizations默认为false,注释掉后不加载带 min 的js
        }
    }
}
